.header-content {
    width: calc(100% - 32px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
    padding: 0 17px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    height: 60px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    height: 36px;
    line-height: 36px;
    margin: 0;
    padding: 0;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.02);
}

.logo i {
    font-size: 1.5rem;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    line-height: 36px;
    transition: transform 0.3s ease;
}

.logo span {
    display: flex;
    align-items: center;
    height: 36px;
    line-height: 36px;
    letter-spacing: 0.5px;
}

.theme-toggle {
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(0, 0, 0, 0.05);
    padding: 0;
    cursor: pointer;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
    margin: 0;
    line-height: 36px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.theme-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.1);
}

.theme-toggle:active {
    transform: scale(0.95);
}

.theme-toggle i {
    font-size: 18px;
    color: #333;
    line-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute;
}

.light-icon {
    opacity: 1;
    transform: translateY(0) rotate(0);
}

.dark-icon {
    opacity: 0;
    transform: translateY(100%) rotate(-90deg);
}

[data-theme="dark"] .theme-toggle {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .theme-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .light-icon {
    opacity: 0;
    transform: translateY(-100%) rotate(90deg);
}

[data-theme="dark"] .dark-icon {
    opacity: 1;
    transform: translateY(0) rotate(0);
    color: #fff;
}

[data-theme="dark"] .header-content {
    background: rgba(30, 30, 30, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .logo,
[data-theme="dark"] .logo i,
[data-theme="dark"] .theme-toggle,
[data-theme="dark"] .theme-toggle i {
    color: #fff;
}

/* 响应式布局 */
@media (max-width: 768px) {
    .header-content {
        padding: 0 20px;
    }

    .logo {
        font-size: 1.1rem;
        height: 28px;
        line-height: 28px;
    }

    .logo i {
        font-size: 1.2rem;
        width: 28px;
        height: 28px;
        line-height: 28px;
    }

    .theme-toggle {
        width: 28px;
        height: 28px;
        line-height: 28px;
    }

    .theme-toggle i {
        font-size: 16px;
        width: 28px;
        height: 28px;
        line-height: 28px;
    }
}